package com.chenfan.mcn.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfan.common.extension.mybatisplus.enhanced.EnhancedBaseMapper;
import com.chenfan.mcn.model.BusinessCommission;
import com.chenfan.mcn.model.McnPage;
import com.chenfan.mcn.model.dto.BusinessCommissionDTO;
import com.chenfan.mcn.model.vo.BusinessCommissionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商务提成 Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2021-06-07
 */
public interface BusinessCommissionMapper extends EnhancedBaseMapper<BusinessCommission> {

    /**
     * 商务提成列表
     *
     * @param page                  {@link McnPage}
     * @param businessCommissionDTO {@link BusinessCommissionDTO}
     * @return
     */
    Page<BusinessCommissionVO> getList(McnPage<BusinessCommissionVO> page, @Param("dto") BusinessCommissionDTO businessCommissionDTO);

    /**
     * 季度编号下拉选项
     *
     * @return List
     */
    List<String> getQuarterCode();
}
